package org.blogwu.learn.designpattern.chapter15.v3;

public class RandomDisplay extends Display {
    public RandomDisplay(DisplayImpl impl) {
        super(impl);
    }


    public void multDisPlay() {
        open();
        int c = (int) (Math.random() * 10);
        for (int i = 0; i < c; i++) {
            print();
        }
        close();
    }
}
